package com.lbb.springboot;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.Banner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * mybatis-plus Spring Boot 测试 Demo<br>
 * 文档：http://mp.baomidou.com<br>
 */
@EnableTransactionManagement
@SpringBootApplication
@EnableScheduling
@ComponentScan(basePackages = {
        "com.lbb.springboot.config",
        "com.lbb.xcx.controller",
        "com.lbb.xcx.service",
        "com.lbb.springboot.controller",
        "com.lbb.springboot.service"
})
public class Application   {

    protected final static Logger logger = LoggerFactory.getLogger(Application.class);

    public static void main(String[] args) {
        SpringApplication app = new SpringApplication(Application.class);
        app.setBannerMode(Banner.Mode.OFF);
        app.run(args);
        logger.info("PortalApplication is success!");
        System.err.println("sample started. http://localhost:81/swagger-ui.html");
        System.err.println("sample started. http://114.132.188.231:81/swagger-ui.html");
        System.err.println("sample started. http://114.132.188.231:81/manage/");
    }

}
